CFLAG = -std=c++11 -I ../../../build/release-install-cpp11/include/
LFLAG = -L ../../../build/release-install-cpp11/lib -lmuduo_net -lmuduo_base -lpthread -ljsoncpp

all:server client test

server:server.cc
	g++ -o $@ $^ $(CFLAG) $(LFLAG)

client:client.cc
	g++ -o $@ $^ $(CFLAG) $(LFLAG)

test:test.cc
	g++ -o $@ $^ -std=c++11 -ljsoncpp

.PHONY: clean
clean:
	rm -f test server client *.log